package com.jackchan.homework.sysw.entity;

import com.jackchan.homework.common.IdEntity;

import javax.persistence.Column;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * Created by ch-hui on 15/12/26.
 */
public class NutritionEnergy extends IdEntity {

    private Material material;

    private Float cmc;

    private Float cmj;

    @ManyToOne
    @JoinColumn(name = "material_id", referencedColumnName = "id")
    public Material getMaterial() {
        return material;
    }

    public void setMaterial(Material material) {
        this.material = material;
    }

    @Column(name = "cmc")
    public Float getCmc() {
        return cmc;
    }

    public void setCmc(Float cmc) {
        this.cmc = cmc;
    }

    @Column(name = "cmj")
    public Float getCmj() {
        return cmj;
    }

    public void setCmj(Float cmj) {
        this.cmj = cmj;
    }
}
